<div id="headermenu"><ul><li><cite><a href="/members/$!userId">$!currentUser</a></cite></li>
<li><a href="/logout">退出</a></li>
<li><a href="/forum/members/smsList">#if($auth.unReadShortMsgs($!userId)!=0)<span style="color:RED;font:bold">短消息($auth.unReadShortMsgs($!userId))</span>#else短消息 #end</a></li>
<!--<li><a href="/feeds">RSS 订阅</a></li>!-->
<li><a href="/userlist">会员列表</a></li>
<li><a href="/advsearch">搜索</a></li>
<span id="myspaceSpan">
	<li class="dropmenu" id="myspace"  style="BACKGROUND-POSITION:94%"><a href="/members/$!userId">我的空间</a></li>
	<ul class="popmenu_popup headermenu_popup" id="myspace_menu" style="position: absolute; z-index: 50; clip: rect(auto auto auto auto); left: 1000px; top: 127px; display: none; ">
<li><a href="/forum/members/$!userId">个人信息页</a></li>
<li><a href="/forum/members/myProfile">编辑个人资料</a></li>
<li><a href="/forum/members/smsList">短消息</a></li>
<li><a href="/forum/members/myTopics">我的话题</a></li>
<li><a href="/forum/members/myFavors">我的收藏</a></li>
<li><a href="/forum/members/myFriends">我的好友</a></li>
<li><a href="/forum/members/myRights">我的权限</a></li>
<li><a href="/forum/members/myCredits">积分交易记录</a></li>
</ul>
</span>
<span id="statsSpan">
<li class="dropmenu" id="stats"  style="BACKGROUND-POSITION:94%"><a href="/forum/stat/baseinfo">统计</a></li>
<ul class="popmenu_popup headermenu_popup" id="stats_menu" style="position: absolute; z-index: 50; clip: rect(auto auto auto auto); left: 942px; top: 127px; display: none;">
<li><a href="/forum/stat/baseinfo">基本概况</a> </li>
<li><a href="/forum/stat/flux">访问量记录</a> </li>
<li><a href="/forum/stat/topBoards">版块排行</a> </li>
<li><a href="/forum/stat/topTopics">主题排行</a> </li>
<li><a href="/forum/stat/topCreditsUsers">积分排行</a> </li>
<li><a href="/forum/stat/admins">管理团队</a> </li>
</ul>
</span>
#if($auth.admin($!userId)=="true")<li><a href="/admin" target="_blank">后台管理</a></li>#else #end
<li><a href="/help">帮助</a></li></ul></div>


<script type="text/javascript">
	$(function(){
		$("#myspaceSpan").hover(function(){
			var offset=$("#myspace").offset();
			$("#myspace_menu").css({
			left:function(index,value){
				return offset.left;
				},
				top:function(index,value){
					return offset.top+parseInt($("#myspace").css("height"));
					}
				});
			$("#myspace_menu").show();
			$("#myspace").addClass("hover");
			},
			function(){
					$("#myspace_menu").hide();$("#myspace").removeClass("hover");				
				});
	    $("#statsSpan").hover(function(){
			var offset=$("#stats").offset();
			$("#stats_menu").css({
			left:function(index,value){
				return offset.left+parseInt($("#stats").css("width"))-parseInt($("#stats_menu").css("width"));
				},
				top:function(index,value){
					return offset.top+parseInt($("#stats").css("height"));
					}
				});
			$("#stats_menu").show();$("#stats").addClass("hover")
			}
			,function(){
				$("#stats_menu").hide();$("#stats").removeClass("hover")
				});
	    
	});
</script>